import request from '@/utils/request'
// 获取权限点列表
export const getPermissionAPI = () => request.get('/sys/permission')
// 删除权限点
export const deletePermissionAPI = (id) => request.delete(`/sys/permission/${id}`)
//  添加 权限点
export const postPermissionAPI = (data) => request.post('/sys/permission', data)
// 修改权限点
export const putPermissionAPI = (id, data) => request.put(`/sys/permission/${id}`, data)
// 获取权限点详情
export const getsPermissionAPI = id => request.get(`/sys/permission/${id}`)
